// @ts-ignore
/* eslint-disable */
import request from '@/utils/myRequest';

/** 部门列表 GET /org/dept/list */
export async function getOrgDeptList(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getOrgDeptListParams,
  options?: { [key: string]: any }
) {
  return request<{
    code: number;
    msg: string;
    data: {
      id: string;
      dept_name: string;
      num: number;
      manager_id: string;
      branched_id: string[];
      remark: string;
      create_time: number;
    }[];
  }>("/org/dept/list", {
    method: "GET",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
